package STUDENT.TRINHQUANGXUANDUC.OPPS.POUNDCONVERT;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Controllers pouControllers = new Controllers();
		PoundObject obj = new PoundObject();
		Scanner sc = new Scanner(System.in);
		String value;
		System.out.println("Nhap khoi luong muon chuyen doi:");
		value = sc.nextLine();
		while (value.isEmpty()) {
			System.out.println("Chua nhap khoi luong vui long nhap khoi luong muon chuyen doi:");
			sc = new Scanner(System.in);
			value = sc.nextLine();

		}
		obj.setKilogram(Double.parseDouble(value));
		System.out.println("Khoi luong sau khi chuyen doi la:");
		System.out.println(pouControllers.Convert(obj));
	}
}
